package com.zhonghui.scm.domain;

import java.math.BigDecimal;
import com.zhonghui.common.annotation.Excel;
import com.zhonghui.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 供应链SCM-销售管理-销售合同子对象 scm_sale_contract_item
 * 
 * @author qiezhi
 * @date 2023-12-18
 */
public class ScmSaleContractItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 销售合同id */
    @Excel(name = "销售合同id")
    private Long contractId;

    /** 物料id */
    @Excel(name = "物料id")
    private Long materialId;

    /** 订货数量 */
    @Excel(name = "订货数量")
    private Long orderQuantity;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal amount;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setContractId(Long contractId) 
    {
        this.contractId = contractId;
    }

    public Long getContractId() 
    {
        return contractId;
    }
    public void setMaterialId(Long materialId) 
    {
        this.materialId = materialId;
    }

    public Long getMaterialId() 
    {
        return materialId;
    }
    public void setOrderQuantity(Long orderQuantity) 
    {
        this.orderQuantity = orderQuantity;
    }

    public Long getOrderQuantity() 
    {
        return orderQuantity;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("contractId", getContractId())
            .append("materialId", getMaterialId())
            .append("orderQuantity", getOrderQuantity())
            .append("amount", getAmount())
            .append("remark", getRemark())
            .toString();
    }
}
